from pydantic import MySQLDsn
from pydantic_core import MultiHostUrl

"""
mysql 配置信息
"""

# MySQL
# MYSQL_HOST: str = "60.204.136.208"
MYSQL_HOST: str = "127.0.0.1"
MYSQL_PORT: int = 3306
MYSQL_USER: str = "root"
# MYSQL_PASSWORD: str = "123456"
MYSQL_PASSWORD: str = "root"
MYSQL_DB: str = "minio-upload"

DATABASE_URL: MySQLDsn = MultiHostUrl.build(
    scheme="mysql+pymysql",
    username=MYSQL_USER,
    password=MYSQL_PASSWORD,
    host=MYSQL_HOST,
    port=MYSQL_PORT,
    path=MYSQL_DB
)

